package useragent

import "gitee.com/liumou_site/GoUserAgent/devices"

// generateOptions 生成选项
type generateOptions struct {
	deviceTypes   []DeviceType
	osList        []OS
	browsers      []Browser
	brands        []devices.DeviceBrand
	models        map[devices.DeviceBrand][]string
	useDeviceInfo bool
	deviceInfo    *DeviceInfo
}

// UserAgentGenerator UserAgent生成器结构体
type UserAgentGenerator struct {
	deviceTypes   []DeviceType
	osList        []OS
	browsers      []Browser
	brands        []devices.DeviceBrand
	models        map[devices.DeviceBrand][]string
	useDeviceInfo bool
}

// userAgentPattern UserAgent模式定义
type userAgentPattern struct {
	template string
	os       OS
	device   DeviceType
	browser  Browser
}

// DeviceInfo 设备信息
type DeviceInfo struct {
	Brand devices.DeviceBrand
	Model string
	Type  DeviceType
	Code  string
}
